package days48;

import java.util.Scanner;

public class day30 {
    public static void main1(String[] args) {
        Scanner scanner=new Scanner(System.in);
        while (scanner.hasNext()){
            String string=scanner.nextLine();
            char[] arr=string.toCharArray();
            boolean k=false;
            for (int i = 0; i < arr.length; i++) {
                if(arr[i]=='<'||arr[i]=='>'){
                    k=!k;
                    continue;
                }
                if(k&&arr[i]==' '){
                    continue;
                }
                if(arr[i]-5<'A'){
                    arr[i]= (char) (arr[i]-5+26);
                }else {
                    arr[i]= (char) (arr[i]-5);
                }
            }
            System.out.println(arr);
        }
    }


        public static void main(String[] args){
            Scanner sc = new Scanner(System.in);
            while(sc.hasNext()){
                int n = sc.nextInt();
                int count = 0;
                for(int i=2; i<Math.sqrt(n); i++){
                    if(n%i == 0){
                        while(n%i == 0){
                            n = n/i;
                        }
                        count++;
                    }
                }
                if(n != 1) count++;
                System.out.println(count);
            }
        }
    }

